package com.party.core.service.commune;

import com.party.common.paging.Page;
import com.party.core.model.commune.CIntegralItem;
import com.party.core.service.IBaseService;

import java.util.List;
import java.util.Map;

/**
 * @program: party
 * @description: 积分项服务接口
 * @author: Hua Qunhao
 * @create: 2019-08-12 14:22
 **/
public interface ICIntegralItemService extends IBaseService<CIntegralItem> {

    List<CIntegralItem> webPageList(Map<String, Object> params, Page page);

    /**
    * @Author hzq
    * @Description //根据pmid找到积分列表
    * @Date 15:33 2019/8/13
    * @param partnerId 机构id
    * @return
    **/
    List<CIntegralItem> getCIntegralItemsByPmIdAndTypeId(String partnerId,String typeId, String memberId, Page page);

    Integer getItemNum(CIntegralItem cIntegralItem);

    /***
    * 查询个人所有积分列表
    * @Date 10:58 2019/10/16
    * @param partnerId
    * @return
    **/
    List<CIntegralItem> getCIntegralItemsByPmId(String partnerId, String memberId);

    /**
     * 获取普通类型积分项
     * @author shenliuhai
     * @date 2020/1/2 17:54
     * @param params
     * @return java.util.List<com.party.core.model.commune.CIntegralItem>
     */
    List<CIntegralItem> getItemsByNameAndCategory(Map<String, Object> params);
}